<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

//用户权限标签关联模型
class TagUser extends Model
{
    //
    public $timestamps = false;

    protected $table = 'tag_user';

    protected $fillable = [
        'user_id',
        'tag_id',
    ];

    //关联权限标签
    public function tags()
    {
        return $this->hasOne('App\\Models\\Tags', 'id', 'tag_id');
    }
}
